package com.ruoyi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
/**
 * 这是用户实体类的映射
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "student")  //表名
public class StudentEntity implements Serializable{

    private String name;
    private String sname;
    private int age;
    private String address;

}
